package com.example.test.advice.第六章_枚举和注解.建议90_小心注解继承;

public class Sparrow extends Bird{

    private Desc.Color color;

    public Sparrow() {
        this.color = Desc.Color.Grayish;
    }

    public Sparrow(Desc.Color color) {
        this.color = color;
    }

    @Override
    public Desc.Color getColor() {
        return color;
    }
}
